package com.sinosoft.builder.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 用于封装@annotations
 * 
 * @author 潘巍（Peter Pan）
 * @since 2010-5-14 下午05:33:47
 */
public class JavaAnnotation {

	private Class<?> type;

	private List<String> arguments = new ArrayList<String>();

	public JavaAnnotation(Class<?> type) {
		super();
		this.type = type;
	}

	public JavaAnnotation(Class<?> type, String... parameters) {
		this(type);
		this.arguments = Arrays.asList(parameters);
	}

	public Class<?> getType() {
		return type;
	}

	public List<String> getArguments() {
		return arguments;
	}

}
